package com.luodan.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.SessionAttribute;
import org.springframework.web.bind.annotation.SessionAttributes;

@Controller
@SessionAttributes("UUID")
public class FirsstConttroller {

    @RequestMapping("/test1")
    public String test1(@SessionAttribute("UUID") String name,Model model){
        model.addAttribute("name",name);
        return "test1.jsp";
    }
    @RequestMapping("/login")
    public String login(Model model){
        model.addAttribute("UUID","罗丹");
        return  "login.jsp";
    }
}
